package cn.wolfcode.mapper;

import cn.wolfcode.domain.WorkJob;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WorkJobMapper {

         /*
         修饰符  返回值类型  方法名称（参数类型）{

          }*/

         List<WorkJob> findAll(@Param("name")String name);

        int deleteById(Long id);


    void save(WorkJob workJob);

    WorkJob findById(Long id);

    void updateById(WorkJob workJob);

    List<WorkJob> selectAll();

    WorkJob findByName(@Param("name")String name);
}
